package com.listing.action;

import java.util.Map;

import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.dispatcher.SessionMap;

import com.opensymphony.xwork2.ActionContext;

@Results({
	  @Result(type="redirect", location="http://fuwu.taobao.com/serv/shop_index.htm?page_id=95889&isv_id=62112477&page_rank=2&tab_type=1")
})
public class LogoutAction extends ActionBase{

	public String execute()
	{
		Map session = ActionContext.getContext().getSession();
		if (session instanceof SessionMap)
		{
			((SessionMap) session).invalidate();
		}
		return SUCCESS;
	}
}
